package com.zhenwei.zscm.mappings;

import com.zhenwei.zscm.entity.FileEntity;
import com.zhenwei.zscm.model.dto.file.FileDTO;
import com.zhenwei.zscm.model.dto.file.FileInfoDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface FileMapping {
    FileMapping INSTANCE = Mappers.getMapper(FileMapping.class);
    FileEntity dto2Entity(FileDTO dto);
    FileDTO entity2Dto(FileEntity dto);
    FileInfoDTO dto2Info(FileDTO dto);
}
